print: Check unknown option values whether they are actually custom settings
authorTill Kamppeter <till.kamppeter@gmail.com>
Thu, 4 Apr 2019 16:39:18 +0000 (16:39 +0000)
committerMarek Kašík <mkasik@redhat.com>
Thu, 4 Apr 2019 16:39:18 +0000 (16:39 +0000)
commitc6ea37144cc8379102e3660a63df3513745d14d8
treed0ae85aac7c93cb6e7dbc7d7761e6e6d96bf3f00
parent0d4ad0235320ed13446f3a872865430093504f41
print: Check unknown option values whether they are actually custom settings

Additional code improvements and fixes:

- Use g_regex_match_simple() instead of sscanf()
- Added spaces between function names and left parantheses
- Set always correct custom page size
- Added page_setup field to CupsOptionsData data structure
- Replaced tab indentions by spaces
- Moved #define out of add_cups_options() function, removed line breaks from regular expressions
modules/printbackends/gtkprintbackendcups.c